home *** CD-ROM | disk | FTP | other *** search
/ United Public Domain Gold 2 / United Public Domain Gold 2.iso / utilities / pu745.dms / pu745.adf / GLOBE099.LHA / Ami-Globe / win_edit.h < prev    next >
C/C++ Source or Header  |  1994-04-30  |  8KB  |  271 lines

  1.  
  2. SHORT editBorderVectors1[] = {
  3.     0,0,
  4.     91,0,
  5.     91,15,
  6.     0,15,
  7.     0,0
  8. };
  9.  
  10. struct Border editBorder1 = {
  11.     -1,-1,    /* XY origin relative to container TopLeft */
  12.     3,0,JAM1,    /* front pen, back pen and drawmode */
  13.     5,    /* number of XY vectors */
  14.     editBorderVectors1,    /* pointer to XY vectors */
  15.     NULL    /* next border in list */
  16. };
  17.  
  18. struct IntuiText editIText1 = {
  19.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  20.     12,3,    /* XY origin relative to container TopLeft */
  21.     NULL,    /* font pointer or NULL for default */
  22.     "Edit pays",    /* pointer to text */
  23.     NULL    /* next IntuiText structure */
  24. };
  25.  
  26. struct Gadget editm6 = {
  27.     NULL,    /* next gadget */
  28.     16,98,    /* origin XY of hit box relative to window TopLeft */
  29.     90,14,    /* hit box width and height */
  30.     NULL,    /* gadget flags */
  31.     RELVERIFY,    /* activation flags */
  32.     BOOLGADGET,    /* gadget type flags */
  33.     (APTR)&editBorder1,    /* gadget border or image to be rendered */
  34.     NULL,    /* alternate imagery for selection */
  35.     &editIText1,    /* first IntuiText structure */
  36.     NULL,    /* gadget mutual-exclude long word */
  37.     NULL,    /* SpecialInfo structure */
  38.     NULL,    /* user-definable data */
  39.     NULL    /* pointer to user-definable data */
  40. };
  41.  
  42. SHORT editBorderVectors2[] = {
  43.     0,0,
  44.     91,0,
  45.     91,15,
  46.     0,15,
  47.     0,0
  48. };
  49. struct Border editBorder2 = {
  50.     -1,-1,    /* XY origin relative to container TopLeft */
  51.     3,0,JAM1,    /* front pen, back pen and drawmode */
  52.     5,    /* number of XY vectors */
  53.     editBorderVectors2,    /* pointer to XY vectors */
  54.     NULL    /* next border in list */
  55. };
  56.  
  57. struct IntuiText editIText2 = {
  58.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  59.     19,2,    /* XY origin relative to container TopLeft */
  60.     NULL,    /* font pointer or NULL for default */
  61.     "Redraw",    /* pointer to text */
  62.     NULL    /* next IntuiText structure */
  63. };
  64.  
  65. struct Gadget editm5 = {
  66.     &editm6,    /* next gadget */
  67.     16,81,    /* origin XY of hit box relative to window TopLeft */
  68.     90,14,    /* hit box width and height */
  69.     NULL,    /* gadget flags */
  70.     RELVERIFY,    /* activation flags */
  71.     BOOLGADGET,    /* gadget type flags */
  72.     (APTR)&editBorder2,    /* gadget border or image to be rendered */
  73.     NULL,    /* alternate imagery for selection */
  74.     &editIText2,    /* first IntuiText structure */
  75.     NULL,    /* gadget mutual-exclude long word */
  76.     NULL,    /* SpecialInfo structure */
  77.     NULL,    /* user-definable data */
  78.     NULL    /* pointer to user-definable data */
  79. };
  80.  
  81. SHORT editBorderVectors3[] = {
  82.     0,0,
  83.     91,0,
  84.     91,15,
  85.     0,15,
  86.     0,0
  87. };
  88. struct Border editBorder3 = {
  89.     -1,-1,    /* XY origin relative to container TopLeft */
  90.     3,0,JAM1,    /* front pen, back pen and drawmode */
  91.     5,    /* number of XY vectors */
  92.     editBorderVectors3,    /* pointer to XY vectors */
  93.     NULL    /* next border in list */
  94. };
  95.  
  96. struct IntuiText editIText3 = {
  97.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  98.     19,2,    /* XY origin relative to container TopLeft */
  99.     NULL,    /* font pointer or NULL for default */
  100.     "Show pt",    /* pointer to text */
  101.     NULL    /* next IntuiText structure */
  102. };
  103.  
  104. struct Gadget editm4 = {
  105.     &editm5,    /* next gadget */
  106.     16,64,    /* origin XY of hit box relative to window TopLeft */
  107.     90,14,    /* hit box width and height */
  108.     NULL,    /* gadget flags */
  109.     RELVERIFY,    /* activation flags */
  110.     BOOLGADGET,    /* gadget type flags */
  111.     (APTR)&editBorder3,    /* gadget border or image to be rendered */
  112.     NULL,    /* alternate imagery for selection */
  113.     &editIText3,    /* first IntuiText structure */
  114.     NULL,    /* gadget mutual-exclude long word */
  115.     NULL,    /* SpecialInfo structure */
  116.     NULL,    /* user-definable data */
  117.     NULL    /* pointer to user-definable data */
  118. };
  119.  
  120. SHORT editBorderVectors4[] = {
  121.     0,0,
  122.     91,0,
  123.     91,15,
  124.     0,15,
  125.     0,0
  126. };
  127. struct Border editBorder4 = {
  128.     -1,-1,    /* XY origin relative to container TopLeft */
  129.     3,0,JAM1,    /* front pen, back pen and drawmode */
  130.     5,    /* number of XY vectors */
  131.     editBorderVectors4,    /* pointer to XY vectors */
  132.     NULL    /* next border in list */
  133. };
  134.  
  135. struct IntuiText editIText4 = {
  136.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  137.     19,2,    /* XY origin relative to container TopLeft */
  138.     NULL,    /* font pointer or NULL for default */
  139.     "Zoom out",    /* pointer to text */
  140.     NULL    /* next IntuiText structure */
  141. };
  142.  
  143. struct Gadget editm3 = {
  144.     &editm4,    /* next gadget */
  145.     15,47,    /* origin XY of hit box relative to window TopLeft */
  146.     90,14,    /* hit box width and height */
  147.     NULL,    /* gadget flags */
  148.     RELVERIFY,    /* activation flags */
  149.     BOOLGADGET,    /* gadget type flags */
  150.     (APTR)&editBorder4,    /* gadget border or image to be rendered */
  151.     NULL,    /* alternate imagery for selection */
  152.     &editIText4,    /* first IntuiText structure */
  153.     NULL,    /* gadget mutual-exclude long word */
  154.     NULL,    /* SpecialInfo structure */
  155.     NULL,    /* user-definable data */
  156.     NULL    /* pointer to user-definable data */
  157. };
  158.  
  159. SHORT editBorderVectors5[] = {
  160.     0,0,
  161.     91,0,
  162.     91,15,
  163.     0,15,
  164.     0,0
  165. };
  166. struct Border editBorder5 = {
  167.     -1,-1,    /* XY origin relative to container TopLeft */
  168.     3,0,JAM1,    /* front pen, back pen and drawmode */
  169.     5,    /* number of XY vectors */
  170.     editBorderVectors5,    /* pointer to XY vectors */
  171.     NULL    /* next border in list */
  172. };
  173.  
  174. struct IntuiText editIText5 = {
  175.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  176.     19,2,    /* XY origin relative to container TopLeft */
  177.     NULL,    /* font pointer or NULL for default */
  178.     "Zoom",    /* pointer to text */
  179.     NULL    /* next IntuiText structure */
  180. };
  181.  
  182. struct Gadget editm2 = {
  183.     &editm3,    /* next gadget */
  184.     15,30,    /* origin XY of hit box relative to window TopLeft */
  185.     90,14,    /* hit box width and height */
  186.     NULL,    /* gadget flags */
  187.     RELVERIFY,    /* activation flags */
  188.     BOOLGADGET,    /* gadget type flags */
  189.     (APTR)&editBorder5,    /* gadget border or image to be rendered */
  190.     NULL,    /* alternate imagery for selection */
  191.     &editIText5,    /* first IntuiText structure */
  192.     NULL,    /* gadget mutual-exclude long word */
  193.     NULL,    /* SpecialInfo structure */
  194.     NULL,    /* user-definable data */
  195.     NULL    /* pointer to user-definable data */
  196. };
  197.  
  198. SHORT editBorderVectors6[] = {
  199.     0,0,
  200.     91,0,
  201.     91,15,
  202.     0,15,
  203.     0,0
  204. };
  205. struct Border editBorder6 = {
  206.     -1,-1,    /* XY origin relative to container TopLeft */
  207.     3,0,JAM1,    /* front pen, back pen and drawmode */
  208.     5,    /* number of XY vectors */
  209.     editBorderVectors6,    /* pointer to XY vectors */
  210.     NULL    /* next border in list */
  211. };
  212.  
  213. struct IntuiText editIText6 = {
  214.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  215.     19,2,    /* XY origin relative to container TopLeft */
  216.     NULL,    /* font pointer or NULL for default */
  217.     "MovePt",    /* pointer to text */
  218.     NULL    /* next IntuiText structure */
  219. };
  220.  
  221. struct Gadget editm1 = {
  222.     &editm2,    /* next gadget */
  223.     15,13,    /* origin XY of hit box relative to window TopLeft */
  224.     90,14,    /* hit box width and height */
  225.     NULL,    /* gadget flags */
  226.     RELVERIFY,    /* activation flags */
  227.     BOOLGADGET,    /* gadget type flags */
  228.     (APTR)&editBorder6,    /* gadget border or image to be rendered */
  229.     NULL,    /* alternate imagery for selection */
  230.     &editIText6,    /* first IntuiText structure */
  231.     NULL,    /* gadget mutual-exclude long word */
  232.     NULL,    /* SpecialInfo structure */
  233.     NULL,    /* user-definable data */
  234.     NULL    /* pointer to user-definable data */
  235. };
  236.  
  237. #define editGadgetList1 editm1
  238.  
  239. struct NewWindow editNewWindowStructure1 = {
  240.     507,16,    /* window XY origin relative to TopLeft of screen */
  241.     120,148,    /* window width and height */
  242.     0,1,    /* detail and block pens */
  243.     GADGETDOWN+GADGETUP+CLOSEWINDOW,    /* IDCMP flags */
  244.     WINDOWSIZING+WINDOWDRAG+WINDOWDEPTH+WINDOWCLOSE+ACTIVATE+NOCAREREFRESH,    /* other window flags */
  245.     &editm1,    /* first gadget in gadget list */
  246.     NULL,    /* custom CHECKMARK imagery */
  247.     "Editor",    /* window title */
  248.     NULL,    /* custom screen pointer */
  249.     NULL,    /* custom bitmap */
  250.     5,5,    /* minimum width and height */
  251.     -1,-1,    /* maximum width and height */
  252.     CUSTOMSCREEN    /* destination screen type */
  253. };
  254.  
  255.  
  256. void HandleEvent2(object)
  257. APTR object;
  258. {
  259. /*
  260.   if (object == (APTR)&editm1) { cmd_movept(object); return; }
  261.   if (object == (APTR)&editm2) { cmd_zoom(object); return; }
  262.   if (object == (APTR)&editm3) { cmd_zoom_out(object); return; }
  263.   if (object == (APTR)&editm4) { cmd_show_pt(object); return; }
  264.   if (object == (APTR)&editm5) { cmd_redraw(object); return; }
  265.   if (object == (APTR)&editm6) { cmd_edit_pays(object); return; }
  266. */
  267. }
  268. #define HANDLEEVENT HandleEvent
  269.  
  270. /* end of PowerWindows source generation */
  271.